package com.ufox.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author 优狐科技-www.hbufox.com
 * @since 2022-06-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String username;

    @TableField("PASSWORD")
    private String password;

    @TableField(exist = false)
    private String checkPass;

    private String nickname;

    private String email;

    /**
     * (0未激活，1激活)
     */
    private Integer state;

    private String statecode;

    private Date regtime;

    /**
     * (1顾客，2商家)
     */
    private Integer roleId;

    @TableField(exist = false)
    private List<Orders> orders;


    /**
     * 验证码
     */
    @TableField(exist = false)
    private String code;


    @TableField(exist = false)
    private List<Orders> ordersList;
}
